// import initVirturalList from './util';

var body = document.querySelector('body #app');
var ul = document.createElement('ul');
ul.className = 'data-list';
body.append(ul);
var data = new Array(45).fill('').map((item, idx) => { return `我是第<strong>${idx + 1}</strong>个元素` });

initVirturalList(
    ul,
    function (idx) {
        var li = document.createElement('li');
        li.className = 'list-item';
        li.innerHTML = data[idx];
        return li;
    },
    { pagesize: 10, max: data.length },
);
